package com.da.landlord;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.googlecode.cswish.annotation.cm;

/**
 * 房源设施
 * @author Peter.Z
 *
 */
@Entity
@Table(name="da_dasuiteitem")
public class DaSuiteItem {

	private Integer id;

	@cm("床")
	private Boolean bed;
	
	@cm("阳台")
	private Boolean balcony;
	
	@cm("热水器")
	private Boolean heater;
	
	@cm("燃气灶")
	private Boolean gas;
	
	@cm("宽带")
	private Boolean broadband;
	
	@cm("冰箱")
	private Boolean freezer;
	
	@cm("空调")
	private Boolean airCondition;
	
	@cm("电视")
	private Boolean tv;
	
	@cm("洗衣机")
	private Boolean washingMachine;
	
	@cm("桌椅")
	private Boolean desk;
	
	@cm("衣柜")
	private Boolean armoire;
	
	@cm("洗手间")
	private Boolean toilet;
	
	@cm("厨房")
	private Boolean kitchen;
	
	@cm("电梯")
	private Boolean elevator;

	@cm("所属房源")
	private DaSuite suite;
	
	@Id
	@GeneratedValue
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Boolean getBed() {
		return bed;
	}

	public void setBed(Boolean bed) {
		this.bed = bed;
	}

	public Boolean getBalcony() {
		return balcony;
	}

	public void setBalcony(Boolean balcony) {
		this.balcony = balcony;
	}

	public Boolean getHeater() {
		return heater;
	}

	public void setHeater(Boolean heater) {
		this.heater = heater;
	}

	public Boolean getGas() {
		return gas;
	}

	public void setGas(Boolean gas) {
		this.gas = gas;
	}

	public Boolean getBroadband() {
		return broadband;
	}

	public void setBroadband(Boolean broadband) {
		this.broadband = broadband;
	}

	public Boolean getFreezer() {
		return freezer;
	}

	public void setFreezer(Boolean freezer) {
		this.freezer = freezer;
	}

	public Boolean getAirCondition() {
		return airCondition;
	}

	public void setAirCondition(Boolean airCondition) {
		this.airCondition = airCondition;
	}

	public Boolean getTv() {
		return tv;
	}

	public void setTv(Boolean tv) {
		this.tv = tv;
	}

	public Boolean getWashingMachine() {
		return washingMachine;
	}

	public void setWashingMachine(Boolean washingMachine) {
		this.washingMachine = washingMachine;
	}

	public Boolean getDesk() {
		return desk;
	}

	public void setDesk(Boolean desk) {
		this.desk = desk;
	}

	public Boolean getArmoire() {
		return armoire;
	}

	public void setArmoire(Boolean armoire) {
		this.armoire = armoire;
	}

	public Boolean getToilet() {
		return toilet;
	}

	public void setToilet(Boolean toilet) {
		this.toilet = toilet;
	}

	public Boolean getKitchen() {
		return kitchen;
	}

	public void setKitchen(Boolean kitchen) {
		this.kitchen = kitchen;
	}

	@ManyToOne(fetch=FetchType.LAZY)
	public DaSuite getSuite() {
		return suite;
	}
	
	public void setSuite(DaSuite suite) {
		this.suite = suite;
	}

	public Boolean getElevator() {
		return elevator;
	}

	public void setElevator(Boolean elevator) {
		this.elevator = elevator;
	}
	
}
